﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region hfg_module_help
    /// <summary>
    /// 
    /// </summary>
    public class hfg_module_help
   {
        private int? _id;
        private int? _mid;
        private int? _rank;
        private string _comment;
        private Byte? _available;



        public hfg_module_help()
        {}


        public hfg_module_help(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                if(dr["mid"].ToString()!="")_mid=Convert.ToInt32(dr["mid"].ToString());
                if(dr["rank"].ToString()!="")_rank=Convert.ToInt32(dr["rank"].ToString());
                _comment=dr["comment"].ToString();
                if (dr["available"].ToString() != "") _available = Convert.ToByte((Convert.ToBoolean(dr["available"].ToString())) ? 1 : 0);


            }
        }



        #region 公共属性 


         /// <summary>
         /// 编号
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 模块编号
         /// </summary>
         [DataFieldAttribute("mid")]
         public int? mid
         {
             get { return _mid; }
             set { _mid = value; }
         }

         /// <summary>
         /// 帮助次序
         /// </summary>
         [DataFieldAttribute("rank")]
         public int? rank
         {
             get { return _rank; }
             set { _rank = value; }
         }

         /// <summary>
         /// 帮助内容
         /// </summary>
         [DataFieldAttribute("comment")]
         public string comment
         {
             get { return _comment; }
             set { _comment = value; }
         }

         /// <summary>
         /// 是否有效
         /// </summary>
         [DataFieldAttribute("available")]
         public Byte? available
         {
             get { return _available; }
             set { _available = value; }
         }



        #endregion


    }
    #endregion
}
